(function () {
    var core = ecui,
        util = core.util,
        dom = ecui.dom;

    ecui.util.extend(NS.ui, {
    });
    ecui.esr.addRoute('info', {
        model: [
            // 'detail@GET /erp-management/venue/order/${orderSn}'
        ],
        weight: 1,
        main: 'nav_tab_info',
        view: 'home.info',
        frame: true,
        queryUrl: '@JSON /erp-management/data-bank/h5/index',
        onbeforerequest: function (context) {

        },
        onbeforerender: function (context) {

            context.iosVersion = /(iPhone|iPad).*?OS (\d+(_\d+)?)/i.test(navigator.userAgent) ?  +(RegExp.$2.replace('_', '.')) : undefined;
        },
        onafterrender: function () {
            ecui.dispatchEvent(ecui.get('will-perform-list-view'), 'refresh');
        }
    });
}());